import Vue from 'vue'
import App from './App.vue'
import router from './router'

// 导入element-ui组件
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 导入store
import store from './store'

Vue.config.productionTip = false

Vue.use(ElementUI)
new Vue({
  // 注册事件总线
  beforeCreate() {
    Vue.prototype.$eventBus = new Vue()
  },
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
